﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.5.1.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.11.js" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Gagnatek.js")" type="text/javascript"></script>

    <link href="../../Content/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
        </div>
        <div id="page-border">
            <div id="content">
                <!--bandeau haut+contenu + bandeau bas-->
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td valign="top" class="fond_bandeau_haut_gauche">
                            &nbsp;
                        </td>
                        <td height="49" class="fond_bandeau_haut_menu">
                            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    @if (User.IsInRole("Owner"))
                    {
                        <li>@Html.ActionLink("Users", "Index", "Users")</li>
                        <li>@Html.ActionLink("Roles", "Index", "Roles")</li>
                        <li>@Html.ActionLink("MediaTypes", "Index", "MediaTypes")</li>
                        <li>@Html.ActionLink("Categories", "Index", "Categories")</li>
                        <li>@Html.ActionLink("Medias", "Index", "Medias")</li>
                        <li>@Html.ActionLink("Loans", "Index", "Loans")</li>
                    }
                    else if (User.IsInRole("Customer"))
                    {
                        <li>@Html.ActionLink("Recherche", "Search", "Medias")</li>
                    }

                    
                </ul>
            </nav>
                        </td>
                        <td valign="top" class="fond_bandeau_haut_droite">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" class="fond_bandeau_haut_gauche">
                            &nbsp;
                        </td>
                        <td width="1000" height="252" class="fond_bandeau_haut">
                            <p>
                                &nbsp;</p>
                            <p>
                                &nbsp;</p>
                        </td>
                        <td valign="top" class="fond_bandeau_haut_droite">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            &nbsp;
                        </td>
                        <td width="1000">
                            <table width="1000" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="200" valign="top" class="fond_colonne_gauche">
                                        &nbsp;
                                    </td>
                                    <td width="600" valign="top" class="fond_centre">
                                        <br />
                                        <!-- TemplateBeginEditable name="contenu" -->
                                        @RenderBody()<!-- TemplateEndEditable --><br />
                                        <br />
                                    </td>
                                    <td width="200" class="fond_colonne_droite">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" class="fond_bordure_bas">
                            &nbsp;
                        </td>
                        <td valign="top" height="15" class="fond_bandeau_bas">
                            &nbsp;
                        </td>
                        <td valign="top" class="fond_bordure_bas">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</body>
</html>
